import {ROLELIST, ROLEADD, ROLEDEL,} from '@/services/api'
import {request, METHOD} from '@/utils/request'
/**
 * 权限列表
 */
 export async function getRoleList(params) {
    return request(ROLELIST, METHOD.POST, params)
  }

/**
 * 新增角色
 */
 export async function roleAdd(params) {
    return request(ROLEADD, METHOD.POST, params)
  }

/**
 * 删除角色
 */
 export async function roleDel(params) {
    return request(ROLEDEL, METHOD.POST, params)
  }

export default {
    getRoleList,
    roleAdd,
    roleDel
}